]> dgit.raspbian.org Git - gnome-shell.git/commit
screencastService: Allow for file extensions depending on encoder used
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 22 Jan 2023 18:43:53 +0000 (19:43 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 1 Mar 2024 12:08:54 +0000 (12:08 +0000)
commit9a0e422a6b9fb6e4ebfe47bd35fbcd117e133dc1
tree6611a17712b4e777c09040fd357045d1d1efe861
parentbe3b92ec450600692bbbb7666b553d2fa1d76030
screencastService: Allow for file extensions depending on encoder used

Depending on the encoder we want to use a different container format and
therefore a different file extension. Right now this file extension is
forced to be webm, so shuffle things around a bit to make that more
dynamic.

Note that this also introduces removing for the old file created by the
recorder, otherwise it would create an empty "mp4" file every time it
falls back from "mp4" to "webm".

To be nice to external (ie. not gnome-shell) consumers of the
screencastService, let's not break the API completely, and detect the
".webm" suffix a little longer to not end up with weird file.webm.webm
filenames.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3211>
js/dbusServices/screencast/screencastService.js
js/ui/screenshot.js